﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Timers;

namespace typewriter
{
    class twClock : twPlugin
    {
        public Label thetime;
       

        public twClock()
        {
            this.name = "The Clock";
            this.author = "WillWharton.com";
            this.desc = "Gives the user a sweet little clock.";
            this.ver = "0.1a";

            
            widge x = new widge(200,50);
            
            tw.SetTopmost(x.Handle, true);

            thetime = new Label();
            thetime.Text = "NOW";
            thetime.BackColor = Color.Transparent;
            thetime.ForeColor = Color.White;
            thetime.AutoSize = true;
            thetime.Location = new System.Drawing.Point(10, 10);
            thetime.TabIndex = 0;
            x.Controls.Add(this.thetime);
            x.Show();

            /*
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(53, 32);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(35, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "label1";
             */
        }

        public override void tick()
        {
            this.thetime.Text = "XX";
        }


    }
}
